package com.zhang.common.lang;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "const")  //必须有Setter(并且不能是静态的)方法才能自动配置
public class Const {

    public static String Base_Url;
    public static String Default_Avatar;    //默认头像的url
    public static String Default_Avatar_FilePath;
    public static String Default_Files_FilePath;



    public void setBase_Url(String base_Url) {
        Base_Url = base_Url;
    }

    public void setDefault_Avatar(String default_Avatar) {
        Default_Avatar = default_Avatar;
    }

    public void setDefault_Avatar_FilePath(String default_Avatar_FilePath) {
        Default_Avatar_FilePath = default_Avatar_FilePath;
    }

    public void setDefault_Files_FilePath(String default_Files_FilePath) {
        Default_Files_FilePath = default_Files_FilePath;
    }
}

